package com.fr.report;

import com.fr.base.XMLable;
import com.fr.base.xml.XMLPrintWriter;
import com.fr.base.xml.XMLableReader;

public class LayerReportAttr
  implements XMLable
{
  public static final String XML_TAG = "LayerReportAttr";
  private boolean isPageQuery = false;
  private int countPerPage = 30;

  public boolean isPageQuery()
  {
    return this.isPageQuery;
  }

  public void setPageQuery(boolean paramBoolean)
  {
    this.isPageQuery = paramBoolean;
  }

  public int getCountPerPage()
  {
    return this.countPerPage;
  }

  public void setCountPerPage(int paramInt)
  {
    this.countPerPage = paramInt;
  }

  public void readXML(XMLableReader paramXMLableReader)
  {
    if (paramXMLableReader.isAttr())
    {
      String str;
      if ((str = paramXMLableReader.getAttr("isPageQuery")) != null)
        setPageQuery(Boolean.valueOf(str).booleanValue());
      if ((str = paramXMLableReader.getAttr("countPerPage")) != null)
        setCountPerPage(Integer.valueOf(str).intValue());
    }
  }

  public void writeXML(XMLPrintWriter paramXMLPrintWriter)
  {
    paramXMLPrintWriter.startTAG("LayerReportAttr").attr("isPageQuery", this.isPageQuery).attr("countPerPage", this.countPerPage).end();
  }

  public boolean equals(Object paramObject)
  {
    if (!(paramObject instanceof LayerReportAttr))
      return false;
    LayerReportAttr localLayerReportAttr = (LayerReportAttr)paramObject;
    return ((isPageQuery() == localLayerReportAttr.isPageQuery()) && (getCountPerPage() == localLayerReportAttr.getCountPerPage()));
  }

  public Object clone()
    throws CloneNotSupportedException
  {
    LayerReportAttr localLayerReportAttr = (LayerReportAttr)super.clone();
    return localLayerReportAttr;
  }
}